﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Data.SqlClient;
using Models;

namespace DAL
{
   public class CollectService
    {
        //收藏夹表
        public bool add(Collect collect)
        {
            string sql = string.Format("insert collect values('{0}','{1}','{2}')",collect.Userid,collect.Storeid,collect.Proid);
            return DBhelper.ex(sql);
        }
        public SqlDataReader get(int id)
        {
            string sql = "select * from collect where userid="+id;
            return DBhelper.DataReader(sql);
        }

        public static object GetOrderInfo(object rRR)
        {
            throw new NotImplementedException();
        }

        public static bool UpdateRefundInfo(string orderNo, int refundAmount, DateTime refundTime, int status)
        {
            throw new NotImplementedException();
        }

        public static bool AddPayInfo(Dictionary<string, string> myDic)
        {
            throw new NotImplementedException();
        }

        public static object OrderPayNot(string out_trade_no)
        {
            throw new NotImplementedException();
        }
    }
}
